package com.xinke.query.web.query.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinke.query.model.entity.GaoSuInfo;
import com.xinke.query.model.enums.QueryStatus;
import com.xinke.query.model.file.IdentificationFile;
import com.xinke.query.model.file.ResultFile;
import com.xinke.query.model.query.FeedbackQuery;
import com.xinke.query.model.query.GaoSuInfoQuery;
import com.xinke.query.model.vo.GaoSuInfoVo;

import java.io.File;
import java.io.IOException;

public interface GaoSuInfoService extends IService<GaoSuInfo> {

    //void queryGaosuInfo(GaoSuInfoForm gaoSuInfoQuery);

    IPage<GaoSuInfoVo> pageGaoSuInfoByQuery(IPage<GaoSuInfoVo> page, GaoSuInfoQuery gaoSuInfoQuery);

    IdentificationFile downloadFileById(Long id);

    File getResultByApplyIdAndQueryId(String applyId, Integer queryType);

    File feedbackData(FeedbackQuery query);


    void saveQueryFile(ResultFile resultFile) throws IOException;

    void updateStatusById(Long id, QueryStatus queryStatus);

    void openQuery(GaoSuInfo gaoSuInfo);
//
//    Map<String, Long> getFileBatchInfoById(Long gaosuInfoId);
//
//    ResultFile getQueryFileByIdAndBatchNum(Long gaosuInfoId, Integer batchNum);
}
